
const baseUrl = 'https://libc-ddanmo-api.bujufangshi.com/' //主接口地址
// const baseUrl = '/api/' //主接口地址

const Index = baseUrl + 'Index/' //登录注册
const Passport = baseUrl + 'Passport/' //登录注册
const Shop = baseUrl + 'Shop/' //商家相关
const Flow = baseUrl + 'Flow/' //下单
const Verify = baseUrl + 'Verify/' //验证码
const Center = baseUrl + 'Center/' //商家相关
const OrderInfo = baseUrl + 'OrderInfo/' //订单管理
const System = baseUrl + 'System/' //系统相关


export const IndexInfo = {
	index: Index + 'index', //登录
	findPass: Index + 'findPass', //找回密码
	getSign: Index + 'getSign',
}

//登录
export const PassportInfo = {
	openidForCode: Passport + 'openidForCode', //获取openid
	loginByOpenid: Passport + 'loginByOpenid', //openid登录
}

//商家相关	
export const ShopInfo = {
	getList: Shop + 'getList', //商家列表
	getDetail: Shop + 'getDetail', //商家详情
	serviceList: Shop + 'serviceList', //服务列表
	serviceDetail: Shop + 'serviceDetail', //服务详情
	getCoupon: Shop + 'getCoupon', //领取优惠券
	evaluateList: Shop + 'evaluateList', //评价列表
	report: Shop + 'report', //举报
}

//商家相关	
export const FlowInfo = {
	confirmOrder: Flow + 'confirmOrder', //确认订单
	submitOrder: Flow + 'submitOrder', //下单
	doPay: Flow + 'doPay', //支付
	appCallback: Flow + 'appCallback', //同步回调
	vipPackage: Flow + 'vipPackage', //会员包
	vipOrder: Flow + 'vipOrder', //创建会员订单
	rechargeOrder: Flow + 'rechargeOrder', //创建充值订单
}

//商家相关	
export const CenterInfo = {
	getInfo: Center + 'getInfo', //商家信息
	setData: Center + 'setData', //设置资料
	modifyAccount: Center + 'modifyAccount', //修改手机号
	balanceLog: Center + 'balanceLog', //余额记录
	setCollect: Center + 'setCollect', //收藏/取消收藏
	myCollect: Center + 'myCollect', //我的收藏品
	messages: Center + 'messages', //消息列表
	messageDetail: Center + 'messageDetail', //消息详情
	commissionCenter: Center + 'commissionCenter', //分销中心
	commissionList: Center + 'commissionList', //佣金明细
	commissionLists: Center + 'commissionLists', //会员佣金明细
	commissionMember: Center + 'commissionMember', //团队成员
	doWithdraw: Center + 'doWithdraw', //提现	
	balanceRecords: Center + 'balanceRecords', //余额明细
	withdraw: Center + 'withdraw', //提现
	withdrawLog: Center + 'withdrawLog', //提现记录
}

//订单管理
export const OrderInfoInfo = {
	orderList: OrderInfo + 'orderList', //订单列表
	orderDetail: OrderInfo + 'orderDetail', //订单详情
	cancelOrder: OrderInfo + 'cancelOrder', //取消订单
	useList: OrderInfo + 'useList', //核销列表
	evaluatePage: OrderInfo + 'evaluatePage', //评价页面
	doEvaluate: OrderInfo + 'doEvaluate', //评价
}


//系统相关
export const SystemInfo = {
	artList: System + 'artList', //帮助文档
	artDetail: System + 'artDetail', //文档详情
	aboutUs: System + 'aboutUs', //关于我们
	userAgreement: System + 'userAgreement', //用户协议
	PrivacyAgreement: System + 'PrivacyAgreement', //隐私协议
	feedback: System + 'feedback', //隐私协议
	upload: System + 'upload', //上传文件
	cancelReason: System + 'cancelReason', //取消原因
	getRegionList: System + 'getRegionList', //城市列表
}

//验证码
export const VerifyInfo = {
	sendCode: Verify + 'sendCode', //获取验证码
	checkCode: Verify + 'checkCode', //检查验证码
}
export default {
	IndexInfo,
	PassportInfo,
	ShopInfo,
	FlowInfo,
	CenterInfo,
	OrderInfoInfo,
	SystemInfo,
	VerifyInfo
}
// module.exports = {

// }